package team.seekers.catering.community.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @Description:
 * @Author: wgq
 * @Date: 2022/3/17
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FirstComment对象", description="一级评论表")
@TableName("comment_first")
public class FirstComment {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @TableField("u_id")
    private String userId;

    @TableField("a_id")
    private String ArticleId;

    @TableField("p_id")
    private String PostId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
